package com.powernode.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * app用户组
 * </p>
 *
 * @author Juice
 * @since 2023-02-08
 */
@Getter
@Setter
@TableName(value = "ums_app_user_group",autoResultMap = true)
public class AppUserGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 组名
     */
    private String groupName;

    /**
     * 资源路径
     * 数据库中存放的是json类型数据，对应Java实体类为list集合，
     * 在@TableField注解中添加属性：typeHandler = JacksonTypeHandler
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> resources;


}
